﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FlightService
{
    /// <summary>
    /// Class that encapsulates a proper request from a client
    /// </summary>
    public class Request
    {
        /// <summary>
        /// List of flights to be looked for
        /// </summary>
        public List<Flight> Flights;

        /// <summary>
        /// This variable is true if the list of flights includes a return flight
        /// </summary>
        public bool IsReturn;

        /// <summary>
        /// Option that a client chooses (Default, Price, Distance etc.)
        /// </summary>
        public string Option;

        /// <summary>
        /// Number of passengers who are 18+ years old
        /// </summary>
        public int Adults;

        /// <summary>
        /// Number of passengers who are less than 18 years old
        /// </summary>
        public int Children;
    }
}